#!/bin/sh

set -e

if [ -f /etc/conf.d/spamd ]; then
    . /etc/conf.d/spamd
fi
pidfile="${pidfile:-/run/spamd.pid}"

if [ -f "$pidfile" ]; then
	_pid="$(cat "$pidfile")"
fi
/usr/bin/sa-update
if [ -n "$_pid" ]; then
	kill -SIGHUP "$_pid"
fi

